<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>FH Admin</title>
    <!-- HTML5 Shim and Respond.js IE10 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 10]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
    <!-- Meta -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="author" content="FH Admin QQ313596790" />

    <link rel="icon" href="../../../assets/images/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../../../assets/fonts/fontawesome/css/fontawesome-all.min.css">
    <link rel="stylesheet" href="../../../assets/plugins/animation/css/animate.min.css">
    <link rel="stylesheet" href="../../../assets/css/style.css">
    
    <!-- vue -->
	<script src="../../../assets/js-vue/vue.js"></script>
    <!--全局配置-->
    <script src="../../../assets/js-v/config.js"></script>

</head>

<body style="background-color: white">
    
    <!-- [加载状态 ] start -->
    <div class="loader-bg">
        <div class="loader-track">
            <div class="loader-fill"></div>
        </div>
    </div>
    <!-- [ 加载状态  ] End -->

    <!-- [ 主内容区 ] start -->
        <div class="pcoded-wrapper" id="app">
            <div class="pcoded-content">
                <div class="pcoded-inner-content">
                    <div class="main-body">
                        <div class="page-wrapper">

                            <!-- [ Main Content ] start -->
                            <div class="row">
							    <!-- [ Hover-table ] start -->
                                <div class="col-xl-12">
									<div class="card">

									<div style="padding-left: 20px;padding-top: 15px;">
									<table style="margin-top:5px;">
										<tr>
											<td style="vertical-align:top;padding-left:2px;">
						                        <select style="height: 30px;width:300px;padding-left:6px;border:1px solid #B2D1D5;overflow:hidden;" id="TYPE" v-model="TYPE" data-placeholder="试题类型"></select>
											</td>
											<td style="vertical-align:top;padding-left:2px;">
						                        <select style="height: 30px;width:300px;padding-left:6px;border:1px solid #B2D1D5;overflow:hidden;" id="LEVEL" v-model="LEVEL" data-placeholder="试题级别"></select>
											</td>
											<td style="vertical-align:top;padding-left:5px;">
												<button style="height:28px;" class="btn btn-primary btn-sm" v-on:click="getTestQuestions"><div style="margin-top:-2px;margin-left: -5px;" id="FHAU">&nbsp;获取试题</div></button>
											</td>
											<td v-show="loading">
												<!-- [加载状态 ] start -->
										    	<div class="d-flex justify-content-center" style="margin-top:-10px;">
		                                            <div class="spinner-grow spinner-grow-sm" role="status">
		                                                <span class="sr-only">Loading...</span>
		                                            </div>
		                                        </div>
										    	<!-- [ 加载状态  ] End -->
											</td>
										</tr>
									</table>
									</div>

									<div class="card-block table-border-style" style="margin-top: 1px">
                               			<div class="table-responsive">
                                   			<ul style="margin-left: -30px;">
									                <li>
									                	<ul style="margin-left: -20px;">
										                	<template v-for="(fdata,findex) in queList">
												                <li style="list-style-type:none;margin-top: 5px;">
												                	<template v-if="QTYPE == 'A'">
																		<span style="display: none;">{{QID = fdata.SINGLEELECTION_ID}}</span>
																	</template>
																	<template v-if="QTYPE == 'B'">
																		<span style="display: none;">{{QID = fdata.MULTIPLESELECTION_ID}}</span>
																	</template>
																	<template v-if="QTYPE == 'C'">
																		<span style="display: none;">{{QID = fdata.JUDGEMENTQUESTION_ID}}</span>
																	</template>
																	<template v-if="QTYPE == 'D'">
																		<span style="display: none;">{{QID = fdata.COMPLETION_ID}}</span>
																	</template>
																	<template v-if="QTYPE == 'E'">
																		<span style="display: none;">{{QID = fdata.LARGEQUESTION_ID}}</span>
																	</template>
																	<template v-if="QTYPE == 'F'">
																		<span style="display: none;">{{QID = fdata.COMPOUNDQUESTION_ID}}</span>
																	</template>
												                	<b>. <span v-html="fdata.TITLE.split('../../plugins/ueditor').join(serverurl+'plugins/ueditor')" id="NNTT"></span></b>
												                	<template v-if="'' != fdata.FILEPATH && null != fdata.FILEPATH"><br>&nbsp;&nbsp;&nbsp;<img width="300" v-bind:src="fdata.FILEPATH"></template>
												                	<template v-if="undefined != fdata.FOPTION"><br><div style="margin-top: 5px;margin-left: 20px;" v-html="formatOption(fdata.FOPTION.split(',fh,'),'<br>',findex,findex,QTYPE,compileStr(';B;'+fdata.ANSWER),QID)"></div></template>
												                	<template v-if="QTYPE == 'B'"><input type="hidden" v-bind:id="'FIf'+findex+findex" value="" /></template>
												                	<template v-if="QTYPE == 'C'"><br><div style="margin-top: 5px;margin-left: 20px;" v-html="formatOption('1','2',findex,findex,QTYPE,compileStr(';B;'+fdata.ANSWER),QID)"></template>
												                	<template v-if="QTYPE == 'D'">
												                		<br>答：<input v-bind:name="QID" v-model="DTANSWER" type="text" maxlength="100" title="多处空格的答案用中文输入法下逗号，隔开" style="width:399px;padding-top:5px;border-left-width:0px;border-top-width:0px;border-right-width:0px;border-bottom: 1px solid #dbdbdb" />
												                	</template>
												                	<template v-if="QTYPE == 'E' || QTYPE == 'F'">
												                		<br><div style="float:left;">答：</div><textarea v-model="DTANSWER" v-bind:name="QID" maxlength="2000" style="width:399px;height:88px;padding-top:5px;border-left-width:0px;border-top-width:0px;border-right-width:0px;border-bottom: 1px solid #dbdbdb"></textarea>
												                	</template>
												                	<span style="display: none;" id="fhAnswer">
												                	<span style="display: none;">{{YANSWER = fdata.ANSWER}}</span>
												                	<template v-if="'A' == QTYPE || 'B' == QTYPE">(<span class="text-danger mb-1 mb-1">答案：{{fdata.ANSWER}}</span>)</template>
												                	<template v-if="'C' == QTYPE">(<span class="text-danger mb-1 mb-1">答案：{{fdata.ANSWER == 'true'?'正确':'错误'}}</span>)</template>
												                	<template v-if="'D' == QTYPE || 'E' == QTYPE || 'F' == QTYPE"><br><span class="text-danger mb-1 mb-1">答案：{{fdata.ANSWER}}</span></template>
												                	<br><span class="text-primary mb-1">[ 答案解析：{{fdata.REMARKS}} ]</span>
												                	</span>
												                </li>
											                </template>
									                	</ul>
									                </li>
								            </ul>
								            <div style="width: 100%;text-align: center;display: none;" id="isnext">
								            	<button v-on:click="showAnswer" type="button" class="btn btn-primary" title="" data-toggle="tooltip" data-original-title="btn btn-primary">显示答案</button>
								            	<button v-on:click="getTestQuestions" type="button" class="btn btn-primary" title="" data-toggle="tooltip" data-original-title="btn btn-primary">下一题</button>
								            </div>
										</div>
                               		</div>

                                    </div>
                                </div>
                                <!-- [ Hover-table ] end -->
                            </div>
                            <!-- [ Main Content ] end -->

                        </div>
                    </div>
                </div>
            </div>
        </div>
    <!-- [ 主内容区 ] end -->
    
<script type="text/javascript" src="../../../assets/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="../../../assets/js/pre-loader.js"></script>
<script src="../../../assets/plugins/sweetalert/js/sweetalert.min.js"></script>

<!-- 表单验证提示 -->
<script src="../../../assets/js/jquery.tips.js"></script>

<!-- 本页面js --> 
<script type="text/javascript" src="../../../assets/js-v/exam/goPractice.js"></script>

</body>
</html>